package com.yeyks.consumer.dal.dao;

import com.yeyks.common.result.activity.ActivityCardStatResult;
import com.yeyks.common.result.user.UserDataStatInviteSortResult;
import com.yeyks.consumer.dal.domain.UserInviteRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 用户邀请关系表 Mapper 接口
 * </p>
 *
 * @author yun
 * @since 2019-09-16
 */
public interface UserInviteRelationMapper extends BaseMapper<UserInviteRelation> {

    List<UserDataStatInviteSortResult> selectInviteSort(@Param(value = "type") Integer type);

    List<ActivityCardStatResult> stat(@Param(value = "type") Integer type);

    /**
     * V4.3 推手/创客
     * @param userId 当前用户Id
     * @return
     */
    String getParentPhone(@Param("userId") Integer userId);
}
